package com.sgb.kjwl.view.ui.adapter.shopping;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.swgk.core.customview.SquareTextView;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class ShopPickAdapter extends BaseRecycleAdapter<String> {
    SquareTextView rotateTextView;

    public ShopPickAdapter(Context context, List<String> datas) {
        super(context, R.layout.item_shop_pick_list, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, String powerEntity) {
        holder.setBinding(BR.viewModel, powerEntity);
        rotateTextView = holder.itemView.findViewById(R.id.square_view);
        rotateTextView.setLabelName("招标中");
        rotateTextView.setLableColor(R.color.color_0286DF);
        rotateTextView.setSqureViewBg(R.drawable.aquare_text_bg);
    }
}
